import Calculator.Zh0202Calculate;
import Factory.Zh0202CalculateFactory;

/**
 * @author: zh
 * @date: 2021/11/18 11:30
 * @version: 1.0
 */
public class Client {
    public static void main(String[] args) {
        Zh0202Calculate calculate;
        Zh0202CalculateFactory factory;
        factory= (Zh0202CalculateFactory) XMLUtil.getBean(4);
        calculate=factory.produceCalculate();
        System.out.println(calculate.calculate(9, 3));
        Calculator ui = new Calculator();
        ui.setVisible(true);
    }
}
